/* Global */
body {
  background-color: #e6e6e6;
  font-family: 'Poppins', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Back Button Styling */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.back-button i {
  font-size: 1rem;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
}

/* Base Heading Style */
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: #ff4b2b;
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-radius: 2px;
}

p {
  line-height: 1.8;
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* Hero Section (Existing Code) */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
  height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 36, 0, 0.15) 0%, transparent 70%);
  animation: pulse-bg 8s infinite linear;
}

.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-gray);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeIn 2s ease;
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(45deg, #ff4b2b, #ff6b6b, #e63946);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s infinite alternate;
}

.hero-content p {
  margin-top: 5px;
  font-size: 1.8rem;
  color: #f2f2f2;
  opacity: 0.9;
  animation: fadeInUp 2s ease;
}

/* Our Journey Section - Timeline */
.journey-section {
  background-color: #f9f9f9;
  padding: 20px;
  position: relative; 
  overflow: hidden; 
}

.timeline {
  position: relative;
  z-index: 1; /* Ensures the timeline content is above the animated background */
  margin: 0 auto;
  max-width: 800px;
}

/* New animated background element */
.journey-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 150%;
  height: 150%;
  background: linear-gradient(135deg, rgba(255, 75, 43, 0.1), transparent 50%);
  transform: translateY(-50%) rotate(45deg);
  animation: scroll-move 10s linear infinite;
  z-index: 0;
}

.timeline ol {
  list-style-type: none; 
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline ol::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #ddd;
  transform: translateX(-50%);
  z-index: 1; 
}

.timeline li {
  position: relative;
  z-index: 1;
  padding: 25px 0;
  width: 50%;
  box-sizing: border-box;
}

.timeline li:nth-child(odd) {
  text-align: right;
  padding-right: 40px;
}

.timeline li:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #ff4b2b;
  border-radius: 50%;
  border: 4px solid #fff;
  z-index: 2; 
  animation: pulse-dot 2s infinite ease-in-out;
}

.timeline li:nth-child(odd) .timeline-dot {
  right: -14px; 
}

.timeline li:nth-child(even) .timeline-dot {
  left: -14px; 
}

.timeline-content {
  background-color: rgba(207, 206, 206, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  border: 4px solid #a3a3a3;
  position: relative;
  z-index: 1;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 5px;
}

/* Add this new class to your CSS file */
.timeline-content.hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Animations (existing) */
@keyframes scroll-move {
  0% { transform: translateY(-50%) translateX(0) rotate(45deg); }
  100% { transform: translateY(-50%) translateX(-100%) rotate(45deg); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 6px rgba(230,57,70,0.6); }
  50% { box-shadow: 0 0 18px rgba(230,57,70,0.9); }
  100% { box-shadow: 0 0 6px rgba(230,57,70,0.6); }
}

/* Responsive adjustments for timeline (existing) */
@media (max-width: 768px) {
  .timeline ol::before {
    left: 20px;
  }

  .timeline li {
    width: 100%;
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
  }

  .timeline li:nth-child(even) {
    left: 0;
    padding-left: 30px;
  }


  .timeline-dot {
    top: 25px;
    transform: none;
  }

  .timeline-content {
    margin-left: 10px;
  }
}

/* Mission and Vision Section */
.mv-section {
  padding: 20px;
}

.mv-item {
  display: flex;
  align-items: center; /* Changed from flex-start to center */
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 50px;
  margin-top: 50px;
}

.mv-item-reverse {
  flex-direction: row-reverse;
}

.mv-item-icon {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
}

.mv-item-icon i {
  font-size: 3rem;
  color: #ff4b2b;
  margin-bottom: 10px;
}

.mv-item-icon h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin: 0;
}

.mv-item-content {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.mv-item-content:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mv-item-content p {
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mv-item,
  .mv-item-reverse {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }
}

/* Animations (Existing Code) */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes gradient-shift {
  0% { background-position: left top; }
  100% { background-position: right bottom; }
}

@keyframes pulse-bg {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 6px rgba(230,57,70,0.6); }
  50% { box-shadow: 0 0 18px rgba(230,57,70,0.9); }
  100% { box-shadow: 0 0 6px rgba(230,57,70,0.6); }
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
  .timeline ol::before {
    left: 20px;
  }

  .timeline li {
    width: 100%;
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
  }

  .timeline li:nth-child(even) {
    left: 0;
    padding-left: 40px;
  }

  .timeline li:nth-child(odd) .timeline-dot,
  .timeline li:nth-child(even) .timeline-dot {
    left: 6px;
    right: auto;
  }

  .timeline-dot {
    top: 25px;
    transform: none;
  }

  .timeline-content {
    margin-left: 10px;
  }

  .back-button{
    display: none;
  }
}

    /* Base Footer Styles (Original) */
.footer {
    background-color: #bdbdbd; 
    padding: 20px 60px;
    border-top: 1px solid #9c9b9b;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 220px; /* Ensures columns take up space on larger screens */
}

/* Logo styling */
.footer-logo {
    font-weight: bold;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-logo span {
    color: #000;
}

.footer-logo-icon {
    color: #ff0000;
    margin-left: 4px;
}

.footer-logo-img {
    height: 40px; 
    width: auto;
}

.footer-description {
    margin: 10px 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.contact-info {
    font-size: 14px;
    line-height: 1.6;
}

.contact-info i {
    color: #ff0000;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 5px;
    font-size: 13px;
    color: #575757;
    margin-top: 5px;
}

.footer-bottom-designer {
  text-align: right;
  padding-top: 5px;
  font-size: 13px;
  margin-top: 5px;
}

/* -------------------------------------------------------------------------- */

/* Responsive Styles */

/* 1. Tablet View (e.g., screens up to 768px wide) */
@media (max-width: 768px) {
    .footer {
        /* Reduce horizontal padding for more screen space */
        padding: 20px 30px; 
    }

    .footer-column {
        /* On tablets, allow columns to take up roughly half the container width, */
        /* making them flow onto two or more lines if there are many columns. */
        /* The original 'min-width' of 220px is generally sufficient here. */
        /* To ensure two columns per row when possible, we can adjust flex: */
        flex: 1 1 calc(50% - 10px); /* 50% minus half the gap */
        min-width: 250px; /* Set a slightly larger min-width for tablet clarity */
    }
  .footer-bottom-designer {
    text-align: center;
}
}

/* -------------------------------------------------------------------------- */

/* 2. Mobile View (e.g., screens up to 480px wide) */
@media (max-width: 480px) {
    .footer {
        /* Drastically reduce horizontal padding for small screens */
        padding: 20px 15px; 
    }

    .footer-container {
        /* Remove space-between on the smallest screens and center content */
        justify-content: center; 
    }

    .footer-column {
        /* Make each column take up the full width (100%) so they stack vertically */
        flex: 1 1 100%; 
        min-width: unset; /* Remove the min-width constraint */
        text-align: center; /* Center content for better mobile appearance */
    }

    .footer-column:not(:last-child) {
        /* Add some extra space between stacked columns on mobile */
        margin-bottom: 20px;
    }

    /* Adjust specific elements for better centering on mobile */
    .footer-logo {
        align-items: center; /* Center logo elements */
    }

    .footer-links {
        /* Reset list-style to look good when centered */
        text-align: center; 
    }

    .contact-info {
        text-align: center; /* Center contact information */
    }
}